package com.erp.pro.service.impl;

import com.erp.common.utils.ExcelUtil;
import com.erp.common.utils.R;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.io.IOException;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;

import com.erp.pro.dao.InstockDao;
import com.erp.pro.domain.InstockDO;
import com.erp.pro.service.InstockService;

import javax.servlet.http.HttpServletResponse;


@Service
public class InstockServiceImpl implements InstockService {
	@Autowired
	private InstockDao instockDao;
	
	@Override
	public InstockDO get(Integer id){
		return instockDao.get(id);
	}
	
	@Override
	public List<InstockDO> list(Map<String, Object> map){
		return instockDao.list(map);
	}
	
	@Override
	public int count(Map<String, Object> map){
		return instockDao.count(map);
	}
	
	@Override
	public int save(InstockDO instock){
		return instockDao.save(instock);
	}
	
	@Override
	public int update(InstockDO instock){
		return instockDao.update(instock);
	}
	
	@Override
	public int remove(Integer id){
		return instockDao.remove(id);
	}
	
	@Override
	public int batchRemove(Integer[] ids){
		return instockDao.batchRemove(ids);
	}

	@Override
	public int confirm(Integer id){
		return instockDao.confirm(id);
	}

	@Override
	public List<InstockDO> findByOutQty(Long proid) {
		return instockDao.findByOutQty(proid);
	}

	@Override
	public List<InstockDO> getByGroupid(String groupNumber, Long proid) {
		return instockDao.getByGroupid(groupNumber,proid);
	}
}
